package com.pro.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.pro.dao.OrderMapper;
import com.pro.dao.UserMapper;
import com.pro.pojo.Order;
@Service
public class OrderService {
	@Resource
	OrderMapper orderMapper;
	public void saveOrder(Order order) throws Exception{
		 orderMapper.saveOrder(order);
	
	}
	public Order selectOrderByOpenId(String openId) throws Exception {
		Order order= orderMapper.selectOrderByOpenId(openId);
		return order;
	}
	public void updateOrder(Order od) {
		orderMapper.updateOrder(od);
		
	}
	public Order selectOrderByNo(String orderNo) {
		Order order= orderMapper.selectOrderByNo(orderNo);
		return order;
	}
	public void deleteByOpenId(String s) {
		orderMapper.deleteByOpenId(s);
	}
}
